//
//  YXViewController.m
//  flutter_yuanxin
//
//  Created by Arthur on 10/15/2020.
//  Copyright (c) 2020 Arthur. All rights reserved.
//

#import "YXViewController.h"
#import "YXAppDelegate.h"
#import "YXFlutterBoostManager.h"

@interface YXViewController ()

@end

@implementation YXViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button addTarget:self
               action:@selector(showFlutter)
     forControlEvents:UIControlEventTouchUpInside];
    [button setTitle:@"Show Flutter!" forState:UIControlStateNormal];
    button.backgroundColor = UIColor.blueColor;
    button.frame = CGRectMake(80.0, 210.0, 160.0, 40.0);
    [self.view addSubview:button];
}

// MARK: 展示flutter
- (void)showFlutter {
    [YXFlutterBoostManager presentWithRoute:@"YXUpdatePaswordVC" andVC:self];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
